public class test {
    public static void main(String[] args) {
        MyArraylist myArraylist=new MyArraylist();
        myArraylist.add(0,1);
        myArraylist.add(2);

        myArraylist.display();
    }
}
